479f82d9c0eaddb49939e788d2bc135a0ca84d8f
1 // moment.js locale configuration
2 // locale : icelandic (is)
3 // author : Hinrik Örn Sigurðsson : https://github.com/hinrik
6 if (typeof define
=== 'function' && define
.amd
) {
7 define(['moment'], factory
); // AMD
8 } else if (typeof exports
=== 'object') {
9 module
.exports
= factory(require('../moment')); // Node
11 factory(window
.moment
); // Browser global
17 } else if (n
% 10 === 1) {
23 function translate(number
, withoutSuffix
, key
, isFuture
) {
24 var result
= number
+ ' ';
27 return withoutSuffix
|| isFuture
? 'nokkrar sekúndur' : 'nokkrum sekúndum';
29 return withoutSuffix
? 'mínúta' : 'mínútu';
32 return result
+ (withoutSuffix
|| isFuture
? 'mínútur' : 'mínútum');
33 } else if (withoutSuffix
) {
34 return result
+ 'mínúta';
36 return result
+ 'mínútu';
39 return result
+ (withoutSuffix
|| isFuture
? 'klukkustundir' : 'klukkustundum');
41 return result
+ 'klukkustund';
46 return isFuture
? 'dag' : 'degi';
50 return result
+ 'dagar';
52 return result
+ (isFuture
? 'daga' : 'dögum');
53 } else if (withoutSuffix
) {
54 return result
+ 'dagur';
56 return result
+ (isFuture
? 'dag' : 'degi');
61 return isFuture
? 'mánuð' : 'mánuði';
65 return result
+ 'mánuðir';
67 return result
+ (isFuture
? 'mánuði' : 'mánuðum');
68 } else if (withoutSuffix
) {
69 return result
+ 'mánuður';
71 return result
+ (isFuture
? 'mánuð' : 'mánuði');
73 return withoutSuffix
|| isFuture
? 'ár' : 'ári';
76 return result
+ (withoutSuffix
|| isFuture
? 'ár' : 'árum');
78 return result
+ (withoutSuffix
|| isFuture
? 'ár' : 'ári');
82 return moment
.defineLocale('is', {
83 months
: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
84 monthsShort
: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
85 weekdays
: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
86 weekdaysShort
: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
87 weekdaysMin
: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
92 LLL
: 'D. MMMM YYYY [kl.] LT',
93 LLLL
: 'dddd, D. MMMM YYYY [kl.] LT'
96 sameDay
: '[í dag kl.] LT',
97 nextDay
: '[á morgun kl.] LT',
98 nextWeek
: 'dddd [kl.] LT',
99 lastDay
: '[í gær kl.] LT',
100 lastWeek
: '[síðasta] dddd [kl.] LT',
105 past
: 'fyrir %s síðan',
120 dow
: 1, // Monday is the first day of the week.
121 doy
: 4 // The week that contains Jan 4th is the first week of the year.